# def fn(*args):  #如果想实现n个数的和,不知道传 几个参数时可以使用*args
#     print(args) #会将参数打包成一个元组
#     count=0
#     for i in args:
#         count+=i
#     return count
#
#
# print(fn(2, 3, 4, 5, 6))
#
#
#
# def fn1(**kwargs):
#     print(type(kwargs),kwargs)
#
# fn1(a=3,b=4,c=5)
#
# # 遍历字典
# dict={'name':'张胜男','age':18,'sex':'女'}
# def fn2():
#     for i in dict.items():
#         print(i)
#
# fn2()

list1=[5,6,6,8,7,'a','b','c']
for i in enumerate(list1):
    print(i)     #可以通过循环找下标值
